/*
 * Project: Sudoku Explainer
 * Copyright (C) 2006-2007 Nicolas Juillerat
 * 
 * Project: Sudoku Hint Engine for Android
 * Copyright (C) 2010-2013 Emanuel Moecklin
 * 
 * Available under the terms of the Lesser General Public License (LGPL)
 */
package com.onegravity.sudoku.solver.util;

import java.util.BitSet;

/**
 * Factory for <code>BitSet</code>s containing only one element.
 * This class works with bits 1..9.
 */
public class BitSetFactory {
	
	public static BitSet createOneElement(int value) {
        BitSet result = new BitSet(10);
        result.set(value);
        return result;
    }

	public static BitSet createTwoElement(int value1, int value2) {
        BitSet result = new BitSet(10);
        result.set(value1);
        result.set(value2);
        return result;
    }
	
}